package com.pro.springbootshop.entityExtend;

import com.pro.springbootshop.entity.Wares;
import lombok.Data;

import java.util.List;
@Data
public class SearchReturn {
    private List<Wares> waresList;
    private int total;
    private int pageSize;
    private int pageNo;
    private int totalPages;

    public SearchReturn(List<Wares> waresList, int total, int pageSize, int pageNo, int totalPages) {
        this.waresList = waresList;
        this.total = total;
        this.pageSize = pageSize;
        this.pageNo = pageNo;
        this.totalPages = totalPages;
    }
}
